package com.diyunapp.xilinapp.login;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.diyunapp.xilinapp.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class TestActivity extends Activity {


    @Bind(R.id.moey)
    TextView moey;
    @Bind(R.id.lin1)
    LinearLayout lin1;
    @Bind(R.id.lin_money)
    LinearLayout linMoney;
    @Bind(R.id.lin2)
    LinearLayout lin2;
    @Bind(R.id.lin_type)
    LinearLayout linType;
    @Bind(R.id.mony1)
    TextView mony1;
    @Bind(R.id.mony2)
    TextView mony2;
    @Bind(R.id.mony3)
    TextView mony3;
    @Bind(R.id.mony4)
    TextView mony4;
    @Bind(R.id.type1)
    TextView type1;
    @Bind(R.id.type2)
    TextView type2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        ButterKnife.bind(this);
    }


    @OnClick({R.id.lin1, R.id.lin2, R.id.mony1, R.id.mony2, R.id.mony3, R.id.mony4,R.id.type1, R.id.type2})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.lin1:
                linMoney.setVisibility(View.VISIBLE);
                break;
            case R.id.lin2:
                linType.setVisibility(View.VISIBLE);
                break;
            case R.id.mony1:
                linMoney.setVisibility(View.GONE);
                moey.setText(mony1.getText().toString().trim());
                break;
            case R.id.mony2:
                linMoney.setVisibility(View.GONE);
                moey.setText(mony2.getText().toString().trim());
                break;
            case R.id.mony3:
                linMoney.setVisibility(View.GONE);
                moey.setText(mony3.getText().toString().trim());
                break;
            case R.id.mony4:
                linMoney.setVisibility(View.GONE);
                moey.setText(mony4.getText().toString().trim());
                break;
            case R.id.type1:
                //跳转支付宝
                break;
            case R.id.type2:
                //跳转联行

                break;
        }

    }


}


